package org.itboys.trade.service;

import javax.annotation.Resource;

import org.itboys.mongodb.core.MongoDataSource;
import org.itboys.mongodb.service.BaseService;
import org.itboys.trade.entity.OrderItem;
import org.springframework.stereotype.Service;

/**
 * 订单明细
 * @author weisky
 *
 */
@Service
public class OrderItemService extends BaseService<OrderItem, Long>{

	private static final long serialVersionUID = 1L;
	
	@Resource(name = "orderDS")
	private MongoDataSource ds;
	
	@Override
	protected MongoDataSource getMongoDataSource() {
		return ds;
	}

	@Override
	protected Class<OrderItem> getEntityClass() {
		return OrderItem.class;
	}
	
}
